package cn.yeziji.forum.common;

/**
 * 返回结果码
 *
 * @author gzkemays
 * @since 2021/11/12 0:12
 */
public interface ResultCode {
  Integer OK = 0;
  Integer REQUEST_FAIL = -1;
  Integer METHOD_ERROR = -2;
  Integer DATA_ERROR = -3;
  Integer HTTP_ERROR = -4;
  Integer SQL_ERROR = -5;
  Integer SQL_OPERA_ERROR = -6;
  Integer NULL_POINT_ERROR = -7;
  Integer ARGS_ERROR = -8;
  Integer SECURITY_ERROR = -9;
  /** 用户登录失败 */
  Integer USER_LOGIN_FAIL = -10;

  Integer USER_NOT_LOGIN = -11;
  Integer TOKEN_ERROR = -12;

  Integer UNKNOWN_ERROR = -999;
}
